import keyword

# 判断关键字
print("显示python中所有关键字:\n", keyword.kwlist)
print("判断for是否是关键字：", keyword.iskeyword('for'))

# 判断类型
print(type(8), type("queen"), type(6.66))

# 数值类型
a1 = 28
a2 = -56
a3 = 0o24
a4 = -0x56
a5 = -12.1
a6 = 5.1e+6
a7 = 3 + 4j

print(a1, a2, a3, a4, a5, a6, a7)
print(float(a1), int(a6), complex(a2), complex(a1, a6))

# 输入
# student_name = input("请输入学生姓名：")
# student_score = input("请输入学生分数：")
# print("学生姓名是%s,学生成绩是%f" % (student_name, float(student_score)))
print(4 ** 2)

a = 2
a **= 2
print("a的值为 ", a)

# python 的代码格式
if True:
    print("正确")
else:
    print("错误")
print("666")
